 
import 'package:dio/dio.dart';
import 'package:m/data/api/dio_common.dart';
import 'package:m/features/pages/bible/module/bible_dict.dart';
 

class BibleProvider  {
  Future<List<BibleDict>> getBibleDictList() async { 
    Response<dynamic> res = await dioCommon.get('/no-auth/bible/bible_dict',isCache: true); 
    if (res.body?['code'] == 200) {
      final List<dynamic> rows = res.body['data']; 
      return rows.map((json)=>BibleDict.fromJson(json)).toList();
    }
    return [];
  } 

}
